#ifndef DIALOGPEN_H
#define DIALOGPEN_H

#include <QDialog>
#include <QPen>


namespace Ui {
class DialogPen;
}

class QColorDialog;
class DialogPen : public QDialog
{
    Q_OBJECT

public:
    explicit DialogPen(QWidget *parent = nullptr);
    ~DialogPen();

    void setPen(const QPen &pen);
    QPen getPen();

    static QPen getPen(QPen iniPen, bool &ok);

private slots:
    void on_BtnColor_clicked();

    void onColorSelectFinish(QColor color);
    void on_BtnOK_clicked();


    void on_BtnCancel_clicked();

signals:
    void sigBtnOk();
    void sigBtnCancel();
private:
    Ui::DialogPen *ui;

    QPen m_pen;

    QColorDialog * mColorDialog = nullptr;

};

#endif // DIALOGPEN_H
